- Posted on
- Featured Image
Practical guide to taming risky legacy Bash: pair a local LLM (Ollama) with ShellCheck, shfmt, ripgrep, Bats, pre-commit and optional Semgrep to inventory scripts, propose small reviewable diffs, auto-generate smoke tests, enforce safety/portability (set -euo pipefail, quoting), check dependencies, and wire CI—yielding safer, documented, testable shell code without a rewrite via a repeatable workflow.